<template>
	<view >
		<view class="tab-index">
			<ltHead></ltHead>
			<u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
		</view>
		<view class="list-box">
			<Order class="msg-item" v-if="current == 0"/>
			<Repair class="msg-item" v-if="current == 1"/>
			<Customer class="msg-item" v-if="current == 2"/>
		</view>		
	</view>
</template>

<script>
	import ltHead from '../../components/lt-haed.vue'
	import Order from './components/order.vue'
	import Repair from './components/repair.vue'
	import Customer from './components/customer.vue'
	export default{
		components:{
			ltHead,
			Order,
			Repair,
			Customer
		},
		data(){
			return{
				list: [{
					name: '预约'
				}, {
					name: '维修'
				}, {
					name: '客户'
				}],
				current: 0
			}
		},
		methods:{
			change(index) {
				this.current = index;
			}
		}
	}
</script>

<style lang="scss" scoped>
	.tab-index{
		width: 100%;
		height: 20vh;
		opacity: 1;
		z-index: 1000;
		// opacity: 0.1;
		// background-color: #f0f;
	}
	.list-box{
		width: 100%;
		height: 80vh;
		overflow: hidden;
		overflow-y: scroll;
		
		// background-color: #000;
	}
</style>
